home *** CD-ROM | disk | FTP | other *** search
- -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C)
- -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
- --
- class TEST_RENAME
-
- inherit
- ANY
- rename equal as dummy_equal
- end;
-
- creation {ANY}
- make
-
- feature {ANY}
-
- r: INTEGER is
- do
- Result := 1;
- end;
-
- make is
- local
- aux_rename: AUX_RENAME;
- c: TEST_RENAME;
- do
- -- ?? is_true(dummy_equal(Current,Current));
- -- PB dans rename of real procedure.
-
- is_true(r = 1);
- !!aux_rename;
- is_true(aux_rename.r = 2);
- is_true(aux_rename.super_r = 1);
- c := Current;
- is_true(c.r = 1);
- c := aux_rename;
- is_true(c.r = 1);
- end;
-
- is_true(b: BOOLEAN) is
- do
- cpt := cpt + 1;
- if not b then
- std_output.put_string("TEST_RENAME: ERROR Test # ");
- std_output.put_integer(cpt);
- std_output.put_string("%N");
- else
- -- std_output.put_string("Yes%N");
- end;
- end;
-
- cpt: INTEGER;
-
- end -- TEST_RENAME
-